package cc.ailley.decorator.decoration;

import cc.ailley.decorator.subject.Pancake;

public class Ham extends Condiment{

    private Pancake pancake;

    public Ham(Pancake pancake) {
        this.pancake = pancake;
    }

    @Override
    public String getDesc() {
        return pancake.getDesc()+ ", 火腿";
    }

    @Override
    public double price() {
        return pancake.price() + 1.5;
    }
}
